#include "HttpServe.hpp"
#include <iostream>
#include <memory>
#include <pthread.h>
#include "Log.hpp"
//浏览器访问充当客户端
using namespace std;
void Usage(string proc)
{
    cout<<"usage\n"<<proc<<endl;
}
int main(int argc,char*argv[])
{
    if(argc!=2)
    {
        Usage(argv[0]);
        exit(0);
    }
    uint16_t port=stoi(argv[1]);
    HttpServe* td=new HttpServe(port);
    td->Init();
    td->Start();
    return 0;
}